package com.moonshineproject.atomic
{
	import flash.events.Event;
	
	import mx.controls.TextArea;
	import mx.core.IUITextField;

	public class EditorTextArea extends TextArea
	{
		private function addTabStoppers(event:Event):void {
			addChildAt(new TabStopper(true), 0);
			addChild(new TabStopper(false));	
		}
		
		public function EditorTextArea()
		{
			super();
			addEventListener(Event.ADDED_TO_STAGE, addTabStoppers);
		}

		public function getTextField():IUITextField {
			return textField;
		}
		
	}
}